/* 
 * @(#)BPConstants.java  1.0 2009-6-12
 * 
 * Copyright 2009 Kepler-Delaware.  All rights reserved.
 */
package com.os.util;

/**
 * Some constants in BP of JIRA.
 * 
 * @author Stanlie
 */
public class BPConstants {

	public static final String FILE_BASE = "D://files";
	/**
	 * 时间格式1：yyyy-MM-dd HH:mm:ss
	 */
	public static final String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
	/**
	 * 时间格式 2: yyyyMMddHHmmss
	 */
	public static final String DATE_FORMAT_NOW_2 = "yyyyMMddHHmmss";
	/**
	 * 当前是否为调试模试, 发部时，请改为false.
	 */
	public static final boolean IS_DEBUG_MODE = false;
	/**
	 * 总结,以主记录上的计划类别为准
	 */
	//public static final boolean SUM_PLANCAT_RECORD = true;
	/**
	 * 默认年度 - 2015
	 */
	public static int DEF_YEAR = 2020;
	
//	static {
//		if(DEF_YEAR==0){
//			DEF_YEAR = DaoFactory.getBaseDaoFactory().getYearDao().selectCurrentYear();
//			if(DEF_YEAR==0){
//				try {
//					DEF_YEAR = Integer.valueOf(BPConfiguration.getProperty("bud_year"));
//				} catch (NumberFormatException e) {
//					// TODO Auto-generated catch block
//					e.printStackTrace();
//				}
//			}
//			if(DEF_YEAR==0){
//				DEF_YEAR = Tools.getYearNow();
//			}
//		}
//	}
	/**
	 * 部门在组织机构中的级别, 为三级， 如 100101000000
	 */
	public static final String ORG_LEVEL_DEP = "3";
	/**
	 * 中心在组织机构中的级别, 为二级， 如 100100000000
	 */
	public static final String ORG_LEVEL_CENTER = "2";
	/**
	 * 主管在组织机构中的级别, 为四级， 如 100101010000
	 */
	public static final String ORG_LEVEL_DEPD = "4";
	/**
	 * 用户默认密码
	 */
	public static final String PWD_DEFAULT = "111111" ;
	
	public static final long ONEDAY_SECOND = 28800 ;

	/**
	 * 1	董事长
	 */
	public static final String ROLETYPE_CHAIRMAN = "1";
	/**
	 *   2	董事长助理
	 **/
	public static final String ROLETYPE_CHAIRMAN_ASSI = "2";
	/**
	 *   3	总经理
	 **/
	public static final String ROLETYPE_GENERALMANAGER = "3";
	/**
	 *   4	总经理助理
	 **/
	public static final String ROLETYPE_GENERALMANAGER_ASSI = "4";
	/**
	 *   5	中心总监
	 **/
	public static final String ROLETYPE_CHIEF = "5";
	/**
	 *   6	中心总监助理
	 **/
	public static final String ROLETYPE_CHIEF_ASSI = "6";
	/**
	 *   7	部门经理
	 **/
	public static final String ROLETYPE_DEP_MANAGER = "7";
	/**
	 *   8	部门主管
	 **/
	public static final String ROLETYPE_DEP_DIRECTOR = "8";
	/**
	 *   9	系统管理员
	 **/
	public static final String ROLETYPE_SYSADMIN = "9";
	/**
	 *   10	普通员工
	 **/
	public static final String ROLETYPE_EMPLOYEE = "10";
	/**
	 *   11	鑫达系统管理员
	 **/
	public static final String ROLETYPE_XINDA_ADMIN = "11";
	/**
	 *   19	超级管理员
	 **/
	public static final String ROLETYPE_SUPERADMIN = "19";

	/**
	 * 组织类别 - 部门主管 department director
	 */
	public static final String OrgType_DepD="depd";
	/**
	 * 组织类别 - 部门
	 */
	public static final String OrgType_Dep="dep";
	/**
	 * 组织类别 - 中心
	 */
	public static final String OrgType_Center="center";
	/**
	 * 组织类别 - 公司
	 */
	public static final String OrgType_Com="com";

	//public static final String Com_Name = "黑龙江鑫达企业集团有限公司";
	/**
	 * 公司名称，放在配置文件中
	 */
	public static final String Com_Name = "com_name";
	/**
	 * Configuration file name.
	 */
	
	public static final String OS_PROPERTY_FILE = "osConfig";	

	/**
	 * Database configuration file
	 */
	public static final String MSSQL_DATABASENAME = "databasename";

	public static final String MSSQL_URL = "url";

	public static final String MSSQL_DRIVER = "driver";

	public static final String MSSQL_USERNAME = "username";

	public static final String MSSQL_PASSWORD = "password";

	public static final String usekey = "usekey";
	
	/**
	 * 逻辑类型, 等于
	 */
	public static final String LogicType_equal = "equal";
	/**
	 * 逻辑类型, 不等于
	 */
	public static final String LogicType_notequal = "notequal";
	/**
	 * 公司编号
	 */
	public static final String Com_No= "com_no";
	public static final String href1= "href1";
	public static final String href2= "href2";
	public static final String href3= "href3";
	public static final String href4= "href4";
	public static final String href5= "href5";
	public static final String href6= "href6";
	public static final String href7= "href7";
	public static final String href8= "href8";
	public static final String href9= "href9";
	public static final String href10= "href10";
	public static final String href11= "href11";
	public static final String href12= "href12";
	public static final String href13= "href13";
	public static final String href14= "href14";
	public static final String href15= "href15";

	public static final String MSSQL_C3P0 = "c3p0" ;
	
	public static final String sys_title = "sys_title";
	
	/**
	 * 依据角色数据权限
	 */
	public static final int Sys_Perm_ByRole = 1; 
	/**
	 * 仅创建人可见
	 */
	public static final int Sys_Perm_OnlyCreator = 2; 
	
	public static final String Sys_Super_Pass = "xtgl2015";
	
	public static final String Sys_Super_Admin = "superadmin";
	public static final String Sys_Role_Super_Admin = "superadmin";
	public static final String Sys_RoleType_Super_Admin = "超级系统管理员";
	
}
